// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: { enabled: false },
  devServer: {
    host: '0.0.0.0',
    port: 3002
  },
  modules: [
    '@element-plus/nuxt',
    '@pinia/nuxt',
    '@pinia-plugin-persistedstate/nuxt',
  ],
  css: [
    'element-plus/dist/index.css'
  ],
  plugins: [
    {
      src: '~/plugins/wang-editor',
      mode: 'client'
    }
  ],
  //跨域处理
  // nitro: {
  //   devProxy: {
  //     "/api": {
  //       target: "https://jkb.dzyxzx.cn",
  //       changeOrigin: true,
  //       // prependPath: true,
  //     }
  //   }
  // },
  runtimeConfig: {
    public: {
      // baseUrl: 'https://jkb.dzyxzx.cn'
      baseUrl: 'https://api.jkb100.com'
    }
  }
})
